package hn.cch.constant;

import java.io.File;

/**
 * 参数配置
 * <p>
 * 类配置
 * <p>
 * 文件配置
 * <p>
 * 数据库配置
 */
public class Path {
	
	
	//配置路径
	public static final String USER_DIR = System.getProperty("user.dir");

	public static final String ETC_DIR = USER_DIR + File.separator + "etc";

	public static final String BEAN_PATH = ETC_DIR + File.separator + "bean.xml";

	public static final String PLAY_PATH = ETC_DIR + File.separator + "play.json";
	
	public static final String USER_PATH = ETC_DIR + File.separator + "user.xml";
	
	public static final String PIPE_PATH = ETC_DIR + File.separator + "pipe.yml";

    public static final String CACHE_PATH = ETC_DIR + File.separator + "cache.xml";

    public static final String PARAM_PATH = ETC_DIR + File.separator + "param.properties";

    public static final String LOG_PATH = ETC_DIR + File.separator + "log.properties";

    public static final String JOB_PATH = ETC_DIR + File.separator + "job.properties";

    public static final String JNI_DIR = USER_DIR + File.separator + "jni";

    public static final String CER_DIR = USER_DIR + File.separator + "cer";
	
	//接入服务器监听端口
	public static final int access_server_port = 8808;

	// 主动模式
    // public static final String from_ftp_host = "192.168.10.153";
    // public static final int from_ftp_port = 21;
    // public static final String from_ftp_username = "chench";
    // public static final String from_ftp_password = "chench";
    // public static final String from_ftp_path = "/from/";

    // 被动模式
    public static final String from_ftp_host = "192.168.10.153";
    public static final int from_ftp_port = 2100;
    public static final String from_ftp_username = "chench";
    public static final String from_ftp_password = "chench";
    public static final String from_ftp_path = "/from/";


    // public static final String from_ftp_host = "192.168.85.130";
    // public static final int from_ftp_port = 21;
    // public static final String from_ftp_username = "chench";
    // public static final String from_ftp_password = "chench";
    // public static final String from_ftp_path = "/from/";
	
	public static final String to_ftp_host = "192.168.85.130";
	public static final int to_ftp_port = 21;
	public static final String to_ftp_username = "chench";
	public static final String to_ftp_password = "chench";
	public static final String to_ftp_path = "/to/";
	
	public static final String temp_file_text = "C:/Users/chench/Desktop/TempFile/Text";
	public static final String temp_file_image = "C:/Users/chench/Desktop/TempFile/Image";
	
	//每天触发核心和附带任务
	public static final String day_trigger_cron = "30 30 8 * * ?";
	//数据任务触发
	public static final String data_trigger_cron = "15 15 23 * * ?";
	//文件任务触发
	public static final String file_trigger_cron = "0/20 * * * * ?";

    //测试任务触发
    public static final String test_trigger_cron = "0 * * * * ?";
	
	//文件任务处理的文件名称前缀
	public static final String file_name_prefix = "file";
	//文件名称的分隔符
	public static final String file_name_separator = "_";
	//接入程序文件名称代号标志
	public static final String access_name_code = "8888";
	//文件内容分隔符
	//内容文件没有记录的标志
	//标志文件是否存在的标志
	public static final String file_text_separator = "|";
	//内容文件后缀名
	public static final String text_name_suffix = ".text";
	//标志文件后缀名
	public static final String flag_name_suffix = ".flag";
	//往前处理多少天的文件
	public static final int file_ago_day = 1;
	
	
}
